# 天天向上的力量

YEAR_DAY = 365


def dayDayUpQ1():
    # 千分之一
    dayUp1 = pow(1.001, YEAR_DAY)

    dayDown1 = pow(0.999, YEAR_DAY)

    print("向上：{:.2f}，向下：{:.2f}".format(dayUp1, dayDown1))

    # 千分之五
    dayFactor = 0.005
    dayUp2 = pow(1 + dayFactor, YEAR_DAY)
    dayDown2 = pow(1 - dayFactor, YEAR_DAY)

    print("向上：{:.2f}，向下：{:.2f}".format(dayUp2, dayDown2))

    # 百分之一
    dayFactor = 0.01
    dayUp3 = pow(1 + dayFactor, YEAR_DAY)
    dayDown3 = pow(1 - dayFactor, YEAR_DAY)

    print("向上：{:.2f}，向下：{:.2f}".format(dayUp3, dayDown3))


if __name__ == '__main__':
    dayDayUpQ1()
